@echo off
if not exist "../omp/Release/nfamin_omp.exe" (echo ERROR: ../omp/Release/nfamin_omp.exe
echo Please build project nfamin_omp.exe
goto :eof
)

for %%S in (2) do (call :run %%S an det)
goto :eof

:run
echo threads: %1
set OMP_NUM_THREADS=%1
if not exist "../res/%2/%3/omp" @mkdir "../res/%2/%3/omp"
"../omp/Release/nfamin_omp.exe" nfamin.ini ../res/%2/%3/omp > "../res/%2/%3/omp/%1.%2.%3.omp.txt"
rem pause